#include "opencv/cv.h"
#include "opencv/highgui.h"

#include "quadtree.h"
#include "window.h"
#include "image.h"

#include <iostream>
#include <sstream>

int main(int argc, char *argv[])
{
	Window* mainWindow;
	
	if (argc > 1)
		mainWindow = new Window(argv[1]);
	else
	{
		std::string imgPath = "../img/deuxcarre.pgm";
		mainWindow = new Window(imgPath.c_str());
	}
	
	mainWindow->KeyboardHandler();
	
	delete mainWindow;
	return 0;
}
